import {
  Service
} from '../util/axios'

// 显示的热搜关键词
export const SearchList = () => {
  return Service({
    url: 'search/hot',
    method: 'GET'
  })
}

// 搜索建议
export const SearchAdvice = (keywords, type) => {
  return Service({
    url: `search/suggest?keywords=${keywords}&type=${type}`,
    method: 'GET'
  })
}

// 搜索多重匹配
export const SerachDetail = (keywords) => {
  return Service({
    url: `/search/multimatch?keywords=${keywords}`,
    method: 'GET'
  })
}